package com.example.ssm.dao;

import com.example.ssm.pojo.User;
import org.junit.Test;
import org.springframework.data.relational.core.sql.In;
import org.springframework.stereotype.Repository;

/**
 * @Package: com.example.ssm.dao
 * @ClassName: UserDao
 * @Author: 76470
 * @CreateTime: 2021/6/8 10:30
 * @Description:
 */
@Repository
public interface UserDao {
	//通过userName获取全部信息
	public User findAllByName (String userName);
	//通过userName获取passWord
	public String findPwdByName(String userName);
	//通过token获取全部信息
	public User findAllByToken(Integer token);
	//通过userName获取token
	public Integer findTokenByName(String userName);
	
	public void addCount(String userName, String passWord, String introduction);
	
}
